<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ECNU的垃圾公共数据库系统的兼容系统——wwj</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="./ecnu.css">
</head>

<body>
    <div id="god_system" style="width: 100%; height: 100%; right: 0px;">

        
        <el-row :gutter="10">
        <el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4">
            兼容UI
        </el-col>
        <el-col :xs="20" :sm="20" :md="20" :lg="20" :xl="20">
            
        </el-col>
        </el-row>
        <el-row type="flex" class="row-bg" justify="center">
            <el-col :xs="24" :sm="24" :md="20" :lg="20" :xl="20">
                    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
                            <el-tab-pane label="免责声明" name="first">
                                    <h1 style="text-align:center;margin-top:10%;">免责声明</h1>
                                    <h3 style="margin:0 auto;width: 50%;margin-top: 50px;">
                                        本脚本仅供学习研究使用，切勿用于违法行为，若使用者乱用造成的不良后果，请自行承担！！！<br>本人概不负责,谢谢！！！<br><br>PC端:双击任意处可自动缩放！！！ </h3>
                            </el-tab-pane>    
                            <el-tab-pane label="选课查询" name="second">
                                    <el-row class="ecnu-tip" :gutter="10">
                                            <el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" style="text-align: center;height:40px;line-height: 40px;">
                                                查询条件
                                            </el-col>
                                            <el-col :xs="20" :sm="20" :md="20" :lg="20" :xl="20">
                                                    <el-select v-model="select" filterable placeholder="请选择">
                                                        <el-option
                                                            v-for="kclb in this.zxxkkclb"
                                                            :key="kclb.xh"
                                                            :label="kclb.kclb"
                                                            :value="kclb.xh">
                                                        </el-option>
                                                        </el-select>
                                                <el-button icon="el-icon-search" @click="queryCourseList">搜索一下</el-button>
                                                <el-button icon="el-icon-circle-check-outline">确认选课</el-button>
                                            </el-col>
                                    </el-row>
                                    <el-table
                                    :data="selectCourseList"
                                    ref="multipleTable"
                                    style="width: 100%"
                                    tooltip-effect="dark"
                                    :default-sort = "{prop: 'name', order: 'descending'}"
                                    @selection-change="handleSelectionChange"
                                    max-height="250">
                                    <el-table-column type="selection" min-width="45"></el-table-column>
                                    <el-table-column
                                      fixed
                                      prop="kcmc"
                                      label="课程名称"
                                      show-overflow-tooltip
                                      min-width="180">
                                    </el-table-column>
                                    <el-table-column
                                      prop="zjjsxm"
                                      label="授课教师"
                                      show-overflow-tooltip
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column prop="sksjdd" label="上课信息" min-width="300" show-overflow-tooltip></el-table-column>
                                    <el-table-column sortable prop="xkrs" label="选上人数" min-width="120"></el-table-column>
                                    <el-table-column prop="khfs" label="考试方式" min-width="120">
                                            <template slot-scope="scope">
                                                    <el-tag size="medium">{{ getJW_DM_KSFS_Name(scope.row.khfs)}}</el-tag>
                                                  </template>
                                    </el-table-column>
                                    <el-table-column
                                      sortable
                                      prop="xf"
                                      label="学分"
                                      min-width="80">
                                    </el-table-column>
                                    <el-table-column fixed="right" label="详情" min-width="60">
                                      <template slot-scope="scope">
                                            <el-button
                                              size="mini"
                                              type=""
                                              @click="showCourseDetail(scope.row.jxbh)"> <i class="el-icon-document"></i></el-button>
                                          </template>
                                    </el-table-column>
                                    </el-table>
                            </el-tab-pane>
                            <el-tab-pane label="退课查询" name="third">
                                    <el-row class="ecnu-tip" :gutter="10">
                                            <el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" style="text-align: center;height:40px;line-height: 40px;">
                                                查询条件
                                            </el-col>
                                            <el-col :xs="20" :sm="20" :md="20" :lg="20" :xl="20">
                                                    <el-select v-model="select" filterable placeholder="请选择">
                                                        <el-option
                                                            v-for="kclb in this.zxxkkclb"
                                                            :key="kclb.xh"
                                                            :label="kclb.kclb"
                                                            :value="kclb.xh">
                                                        </el-option>
                                                        </el-select>
                                                <el-button icon="el-icon-search" @click="queryDropCourseList">搜索一下</el-button>
                                                <el-button icon="el-icon-circle-check-outline">确认退课</el-button>
                                            </el-col>
                                    </el-row>
                                    <el-table
                                    :data="selectCourseList"
                                    ref="multipleTable"
                                    style="width: 100%"
                                    tooltip-effect="dark"
                                    :default-sort = "{prop: 'name', order: 'descending'}"
                                    @selection-change="handleSelectionChange"
                                    max-height="250">
                                    <el-table-column type="selection" min-width="45"></el-table-column>
                                    <el-table-column
                                      fixed
                                      prop="kcmc"
                                      label="课程名称"
                                      show-overflow-tooltip
                                      min-width="180">
                                    </el-table-column>
                                    <el-table-column
                                      prop="zjjsxm"
                                      label="授课教师"
                                      show-overflow-tooltip
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column prop="sksjdd" label="上课信息" min-width="300" show-overflow-tooltip></el-table-column>
                                    <el-table-column sortable prop="xkrs" label="选上人数" min-width="120"></el-table-column>
                                    <el-table-column prop="khfs" label="考试方式" min-width="120">
                                            <template slot-scope="scope">
                                                    <el-tag size="medium">{{ getJW_DM_KSFS_Name(scope.row.khfs)}}</el-tag>
                                                  </template>
                                    </el-table-column>
                                    <el-table-column
                                      sortable
                                      prop="xf"
                                      label="学分"
                                      min-width="80">
                                    </el-table-column>
                                    <el-table-column fixed="right" label="详情" min-width="60">
                                      <template slot-scope="scope">
                                            <el-button
                                              size="mini"
                                              type=""
                                              @click="showCourseDetail(scope.row.jxbh)"> <i class="el-icon-document"></i></el-button>
                                          </template>
                                    </el-table-column>
                                    </el-table>
                            </el-tab-pane>
                            <el-tab-pane label="选课结果" name="fourth">
                                    <el-row class="ecnu-tip" :gutter="10">
                                            <el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" style="text-align: center;height:40px;line-height: 40px;">
                                                选课结果列表
                                            </el-col>
                                            <el-col :xs="20" :sm="20" :md="20" :lg="20" :xl="20">
                                                <el-button icon="el-icon-search">查询一下</el-button>
                                            </el-col>
                                    </el-row>
                                    <el-table
                                    :data="selectedCoursesResult"
                                    style="width: 100%"
                                    tooltip-effect="dark"
                                    :default-sort = "{prop: 'name', order: 'descending'}"
                                    max-height="250">
                                    <el-table-column fixed type="index" min-width="45"></el-table-column>
                                    <el-table-column
                                      fixed
                                      prop="kcmc"
                                      label="课程名称"
                                      show-overflow-tooltip
                                      min-width="180">
                                    </el-table-column>
                                    <el-table-column
                                      prop="kclb"
                                      label="课程类别"
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column prop="sksjdd" label="上课信息" min-width="300" show-overflow-tooltip></el-table-column>
                                    <el-table-column sortable prop="xsrs" label="选上人数" min-width="120"></el-table-column>
                                    <el-table-column prop="khfs" label="考试方式" min-width="120">
                                            <template slot-scope="scope">
                                                    <el-tag size="medium">{{ getJW_DM_KSFS_Name(scope.row.khfs)}}</el-tag>
                                                  </template>
                                    </el-table-column>
                                    <el-table-column
                                      sortable
                                      prop="xs"
                                      label="总学时"
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column fixed="right" label="详情" min-width="80">
                                      <template slot-scope="scope">
                                            <el-button
                                              size="mini"
                                              type=""
                                              @click="handleEdit(scope.$index, scope.row.jxbh)"> <i class="el-icon-document"></i></el-button>
                                          </template>
                                    </el-table-column>
                                    </el-table>
                            </el-tab-pane>
                            <el-tab-pane label="成绩查询" name="fifth">
                                    <el-row class="ecnu-tip" :gutter="10">
                                            <el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" style="text-align: center;height:40px;line-height: 40px;">
                                                成绩查询列表
                                            </el-col>
                                            <el-col :xs="20" :sm="20" :md="20" :lg="20" :xl="20">
                                                <el-button icon="el-icon-search">查询一下</el-button>
                                            </el-col>
                                    </el-row>
                                    <el-table
                                    :data="courseScoreList"
                                    style="width: 100%"
                                    tooltip-effect="dark"
                                    :default-sort = "{prop: 'zzcj', order: 'descending'}"
                                    max-height="250">
                                    <el-table-column fixed type="index" min-width="45"></el-table-column>
                                    <el-table-column
                                      fixed
                                      prop="kcmc"
                                      label="课程名称"
                                      show-overflow-tooltip
                                      min-width="180">
                                    </el-table-column>
                                    <el-table-column
                                      prop="kclb"
                                      label="课程类别"
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column
                                      prop="xnd"
                                      label="学年度"
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column
                                        prop="xq"
                                        label="学期"
                                        min-width="80">
                                    </el-table-column>
                                    <el-table-column
                                        prop="xf"
                                        label="学分"
                                        min-width="120">
                                    </el-table-column>
                                    <el-table-column
                                        prop="xs"
                                        label="学时"
                                        min-width="120">
                                    </el-table-column>
                                    <el-table-column prop="cjzt" label="考试性质" min-width="120">
                                            <template slot-scope="scope">
                                                    <el-tag size="medium">{{ scope.row.cjzt=="2"?'期末成绩':'不知道' }}</el-tag>
                                                </template>
                                    </el-table-column>
                                    <el-table-column prop="jsxm" label="教师" min-width="120"></el-table-column>
                                    <el-table-column fixed prop="sftg" label="通过" min-width="120">
                                            <template slot-scope="scope">
                                                    <el-tag size="medium" type="danger" v-if="scope.row.sftg=='2'">
                                                            <i class="el-icon-error"></i>
                                                    </el-tag>
                                                    <el-tag size="medium" type="success" v-if="scope.row.sftg=='1'">
                                                            <i class="el-icon-success"></i>
                                                    </el-tag>
                                                    
                                                </template>
                                    </el-table-column>
                                    <el-table-column
                                        fixed
                                        sortable
                                        prop="zzcj"
                                        label="成绩"
                                        min-width="120">
                                    </el-table-column>
                                    <el-table-column
                                      sortable
                                      prop="xs"
                                      label="总学时"
                                      min-width="120">
                                    </el-table-column>
                                    <el-table-column fixed="right" label="详情" min-width="80">
                                      <template slot-scope="scope">
                                            <el-button
                                              size="mini"
                                              type=""
                                              @click="handleEdit(scope.$index, scope.row.jxbh)"> <i class="el-icon-document"></i></el-button>
                                          </template>
                                    </el-table-column>
                                    </el-table>
                            </el-tab-pane>
                            <el-tab-pane label="课程表" name="sixth">
                                    <el-row class="ecnu-tip" :gutter="10">
                                            <el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" style="text-align: center;height:40px;line-height: 40px;">
                                                课程表
                                            </el-col>
                                            <el-col :xs="20" :sm="20" :md="20" :lg="20" :xl="20">
                                                <el-button icon="el-icon-search">查询一下</el-button>
                                            </el-col>
                                    </el-row>
                                    <div class="schedule"></div>
                            </el-tab-pane>
                        </el-tabs>
            </el-col>
        </el-row>
    </div>
</body>
<script src="https://unpkg.com/jquery@3.1.1/dist/jquery.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
<!-- import Vue before Element -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>

    (function () {
        startVue();

    })()
    function startVue(){
        
        new Vue({
            el: '#god_system',
            created(){
                console.log(window.parent.student);
                // console.log(window.parent.window.student);
            },
            data: function() {
                var checkUserName = (rule, value, callback) => {
                    
                };
                return {
                    queryScore:{
                        xnd:'',
                    },
                    select: '',
                    activeName: 'first',
                    multipleSelection: [],
                    selectCourseList:[
						{
							"resource_id": "265930661",
							"xf": "3",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1317194618029",
							"kcmc": "机器学习",
							"kkdw": "0145",
							"pylb": "4301",
							"jxbh": "201821317194618029001",
							"jxbmc": "机器学习",
							"zjjszgh": "20180045",
							"khfs": "01",
							"sxfs": "2",
							"skjsszxq": "1",
							"xddx": "中山北路校区,计算机科学与软件工程学院,2018级,软件工程[085212]#",
							"sksjdd": "星期二 9-11 节\/文附楼：121（1-18 周）每周",
							"zjjsxm": "金博",
							"xdrs": "101",
							"sxrs": "37",
							"xkrs": "37",
							"kkdwmc": "计算机科学与软件工程学院",
							"class": "class com.neusoft.education.sysu.xk.zxxkgg.model.KkblbNewModel"
						},
						{
							"resource_id": "265689947",
							"xf": "3",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1410330563201",
							"kcmc": "软件理论基础",
							"kkdw": "0145",
							"pylb": "4301",
							"jxbh": "201821410330563201001",
							"jxbmc": "软件理论基础",
							"zjjszgh": "20160168",
							"khfs": "01",
							"sxfs": "2",
							"skjsszxq": "1",
							"xddx": "中山北路校区,计算机科学与软件工程学院,2018级,软件工程[085212]#",
							"sksjdd": "星期一 2-4 节\/数学楼：113（1-18 周）每周",
							"zjjsxm": "吴恒洋",
							"xdrs": "101",
							"sxrs": "48",
							"xkrs": "48",
							"kkdwmc": "计算机科学与软件工程学院",
							"class": "class com.neusoft.education.sysu.xk.zxxkgg.model.KkblbNewModel"
						},
						{
							"resource_id": "265930666",
							"xf": "3",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1440744168368",
							"kcmc": "有限域与编码",
							"kkdw": "0145",
							"pylb": "4301",
							"jxbh": "201821440744168368001",
							"jxbmc": "有限域与编码",
							"zjjszgh": "20160171",
							"khfs": "01",
							"sxfs": "2",
							"skjsszxq": "1",
							"xddx": "中山北路校区,计算机科学与软件工程学院,2018级,软件工程[085212]#",
							"sksjdd": "星期四 2-4 节\/教书院：105（1-18 周）每周",
							"zjjsxm": "李成举",
							"xdrs": "101",
							"sxrs": "5",
							"xkrs": "5",
							"kkdwmc": "计算机科学与软件工程学院",
							"class": "class com.neusoft.education.sysu.xk.zxxkgg.model.KkblbNewModel"
						},
						{
							"resource_id": "265930667",
							"xf": "3",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1482826830015",
							"kcmc": "高级嵌入式系统设计方法",
							"kkdw": "0145",
							"pylb": "4301",
							"jxbh": "201821482826830015001",
							"jxbmc": "高级嵌入式系统设计方法",
							"zjjszgh": "20100090",
							"khfs": "01",
							"sxfs": "2",
							"skjsszxq": "1",
							"xddx": "中山北路校区,计算机科学与软件工程学院,2018级,软件工程[085212]#",
							"sksjdd": "星期四 5-7 节\/数学楼：113（1-18 周）每周",
							"zjjsxm": "陈铭松",
							"xdrs": "101",
							"sxrs": "11",
							"xkrs": "11",
							"kkdwmc": "计算机科学与软件工程学院",
							"class": "class com.neusoft.education.sysu.xk.zxxkgg.model.KkblbNewModel"
						}
					],
                    dropCourseList:[
                    
                    ],
                    selectedCoursesResult:[
                    {
							"resource_id": "265930651",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1317194278008",
							"kcmc": "运筹学与最优化方法",
							"kclb": "专业选修课",
							"kkdw": "计算机科学与软件工程学院",
							"jxbh": "201821317194278008001",
							"jxbmc": "运筹学与最优化方法",
							"xs": "54",
							"sksjdd": "星期一 9-10 节\/教书院：106（1-18 周）每周",
							"xsrs": "22",
							"class": "class com.neusoft.education.sysu.xk.jsckxkjg.model.JsckkcxxModel"
						},
						{
							"resource_id": "265930658",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1410667596824",
							"kcmc": "专业外语",
							"kclb": "专业必修课",
							"kkdw": "计算机科学与软件工程学院",
							"jxbh": "201821410667596824002",
							"jxbmc": "专业外语",
							"xs": "18",
							"sksjdd": "星期二 7-8 节\/教书院：218（1-9 周）每周",
							"xsrs": "101",
							"class": "class com.neusoft.education.sysu.xk.jsckxkjg.model.JsckkcxxModel"
						},
						{
							"resource_id": "265930674",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1410667632429",
							"kcmc": "专业前沿技术",
							"kclb": "专业选修课",
							"kkdw": "计算机科学与软件工程学院",
							"jxbh": "201821410667632429001",
							"jxbmc": "专业前沿技术",
							"xs": "54",
							"sksjdd": "星期三 5-7 节\/理科B楼：216（1-18 周）每周",
							"xsrs": "98",
							"class": "class com.neusoft.education.sysu.xk.jsckxkjg.model.JsckkcxxModel"
						},
						{
							"resource_id": "265930657",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1410667682073",
							"kcmc": "软件架构设计",
							"kclb": "专业选修课",
							"kkdw": "计算机科学与软件工程学院",
							"jxbh": "201821410667682073001",
							"jxbmc": "软件架构设计",
							"xs": "54",
							"sksjdd": "星期二 2-4 节\/数学楼：113（1-18 周）每周",
							"xsrs": "19",
							"class": "class com.neusoft.education.sysu.xk.jsckxkjg.model.JsckkcxxModel"
						},
						{
							"resource_id": "265930668",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1482826983815",
							"kcmc": "程序验证方法",
							"kclb": "专业选修课",
							"kkdw": "计算机科学与软件工程学院",
							"jxbh": "201821482826983815001",
							"jxbmc": "程序验证方法",
							"xs": "54",
							"sksjdd": "星期四 9-11 节\/理科B楼：1002（1-18 周）每周",
							"xsrs": "7",
							"class": "class com.neusoft.education.sysu.xk.jsckxkjg.model.JsckkcxxModel"
						},
						{
							"resource_id": "265930659",
							"xnd": "2018-2019",
							"xq": "2",
							"kch": "1531963798995",
							"kcmc": "工程伦理",
							"kclb": "专业必修课",
							"kkdw": "计算机科学与软件工程学院",
							"jxbh": "201821531963798995001",
							"jxbmc": "工程伦理",
							"xs": "18",
							"sksjdd": "星期二 7-8 节\/教书院：218（10-18 周）每周",
							"xsrs": "96",
							"class": "class com.neusoft.education.sysu.xk.jsckxkjg.model.JsckkcxxModel"
						}
                    ],
                    zxxkkclb :[{"resourceID":"110121950","xh":"31","kclb":"教育实践反思","kclmb":"75","kcflbm":"0","kcxzm":"1","sfxyck":"1","sfxycx":"1","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"105690200","xh":"30","kclb":"先修课","kclmb":"74","kcflbm":"0","kcxzm":"1","sfxyck":"1","sfxycx":"1","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217800","xh":"2","kclb":"学位基础课","kclmb":"50","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217801","xh":"3","kclb":"专业必修课","kclmb":"51","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217802","xh":"4","kclb":"专业选修课","kclmb":"52","kcflbm":"0","kcxzm":"2","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217803","xh":"5","kclb":"实践课","kclmb":"53","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217804","xh":"1","kclb":"公共课程","kclmb":"54","kcflbm":"0","kcxzm":"1","sfxyck":"1","sfxycx":"1","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217805","xh":"11","kclb":"专业领域核心课","kclmb":"55","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217806","xh":"12","kclb":"选修课程","kclmb":"56","kcflbm":"0","kcxzm":"2","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217808","xh":"14","kclb":"核心课程","kclmb":"58","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217809","xh":"15","kclb":"特色课程","kclmb":"59","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217810","xh":"16","kclb":"讲座课程","kclmb":"60","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217813","xh":"19","kclb":"拓展课程","kclmb":"63","kcflbm":"0","kcxzm":"2","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217814","xh":"20","kclb":"训练课程","kclmb":"64","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217816","xh":"22","kclb":"学位论文","kclmb":"66","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217817","xh":"23","kclb":"方向必修课","kclmb":"67","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217819","xh":"25","kclb":"补修课程","kclmb":"69","kcflbm":"0","kcxzm":"2","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217820","xh":"26","kclb":"基础理论类课程","kclmb":"70","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217821","xh":"27","kclb":"专业技术类课程","kclmb":"71","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217822","xh":"28","kclb":"跨专业或跨学科课程","kclmb":"72","kcflbm":"0","kcxzm":"2","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"12217823","xh":"29","kclb":"专业基础课","kclmb":"73","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"249052950","xh":"32","kclb":"教育实践研究","kclmb":"76","kcflbm":"0","kcxzm":"1","sfxyck":"1","sfxycx":"1","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"},{"resourceID":"243909550","xh":"17","kclb":"实践训练","kclmb":"61","kcflbm":"0","kcxzm":"1","sfxyck":"0","sfxycx":"0","sfbxtxkcjj":"0","sfyzjd":"1","class":"class com.neusoft.education.sysu.kc.kclb.entity.KclbEntity"}],
                    JW_DM_KSFS : [{'CODEVALUE':"01",'CODENAME':"笔试",'orderattr':"01"},{'CODEVALUE':"02",'CODENAME':"口试",'orderattr':"02"},{'CODEVALUE':"03",'CODENAME':"考查",'orderattr':"03"},{'CODEVALUE':"04",'CODENAME':"操作",'orderattr':"04"},{'CODEVALUE':"05",'CODENAME':"其他",'orderattr':"05"}],
                    allXf:[{
							"twoColumn": "6.0",
							"oneColumn": "专业必修课学分",
							"class": "class com.neusoft.education.sysu.djks.ksgl.model.TwoColumnModel"
						},
						{
							"twoColumn": "5.0",
							"oneColumn": "公共课程学分",
							"class": "class com.neusoft.education.sysu.djks.ksgl.model.TwoColumnModel"
                        }
                    ],
                    courseScoreList:[
						{
							"resource_id": "263512066",
							"xh": "51184501150",
							"zpcj": "85.00",
							"xf": "2.0",
							"xnd": "2018-2019",
							"xq": "1",
							"kch": "1319705540952",
							"kcmc": "英语",
							"kclb": "54",
							"jxbh": "201811319705540952005",
							"jxbmc": "中北英语2班",
							"khfs": "03",
							"xs": "36.0",
							"kcywmc": "English",
							"zzcj": "85.00",
							"bzw": "00",
							"sftg": "1",
							"jsxm": "刘艳辉",
							"cjzt": "2",
							"cjlcId": "263512066",
							"class": "class com.neusoft.education.gsis.xscj.xscjcx.model.KccjModel"
						},
						{
							"resource_id": "263474556",
							"xh": "51184501150",
							"zpcj": "81.10",
							"xf": "2.0",
							"xnd": "2018-2019",
							"xq": "1",
							"kch": "1316664332548",
							"kcmc": "中国特色社会主义理论与实践研究",
							"kclb": "54",
							"jxbh": "201811316664332548007",
							"jxbmc": "中北理科1班",
							"khfs": "01",
							"xs": "36.0",
							"kcywmc": "Research on the theory and practice of socialism with Chinese characteristics",
							"zzcj": "81.10",
							"bzw": "00",
							"sftg": "1",
							"jsxm": "安俭",
							"cjzt": "2",
							"cjlcId": "263474556",
							"class": "class com.neusoft.education.gsis.xscj.xscjcx.model.KccjModel"
						},
						{
							"resource_id": "269133653",
							"xh": "51184501150",
							"zpcj": "78.00",
							"xf": "1.0",
							"xnd": "2018-2019",
							"xq": "1",
							"kch": "1281076562233",
							"kcmc": "自然辩证法",
							"kclb": "54",
							"jxbh": "201811281076562233002",
							"jxbmc": "中北理科1班",
							"khfs": "01",
							"xs": "18.0",
							"kcywmc": "Dialectics of Nature",
							"zzcj": "78.00",
							"bzw": "00",
							"sftg": "1",
							"jsxm": "何静",
							"cjzt": "2",
							"cjlcId": "269133653",
							"class": "class com.neusoft.education.gsis.xscj.xscjcx.model.KccjModel"
						},
						{
							"resource_id": "269758253",
							"xh": "51184501150",
							"zpcj": "2",
							"xf": "3.0",
							"xnd": "2018-2019",
							"xq": "1",
							"kch": "1410667889399",
							"kcmc": "图形图像处理技术",
							"kclb": "51",
							"jxbh": "201811410667889399001",
							"jxbmc": "图形图像处理技术",
							"khfs": "03",
							"xs": "54.0",
							"kcywmc": "Graphic and Image Processing Technology",
							"zzcj": "良",
							"bzw": "00",
							"sftg": "1",
							"jsxm": "高岩",
							"cjzt": "2",
							"cjlcId": "269758253",
							"class": "class com.neusoft.education.gsis.xscj.xscjcx.model.KccjModel"
						},
						{
							"resource_id": "269757198",
							"xh": "51184501150",
							"zpcj": "83.00",
							"xf": "3.0",
							"xnd": "2018-2019",
							"xq": "1",
							"kch": "1410744436161",
							"kcmc": "系统分析与验证",
							"kclb": "51",
							"jxbh": "201811410744436161001",
							"jxbmc": "系统分析与验证",
							"khfs": "03",
							"xs": "54.0",
							"kcywmc": "System Analysis and Verification",
							"zzcj": "83.00",
							"bzw": "00",
							"sftg": "1",
							"jsxm": "郭建",
							"cjzt": "2",
							"cjlcId": "269757198",
							"class": "class com.neusoft.education.gsis.xscj.xscjcx.model.KccjModel"
						}
					],
                }
            },
            methods: {
                handleClick(tab, event) {
                    //console.log(tab, event);
                },
                deleteRow(index, rows) {
                    //rows.splice(index, 1);
                },
                handleEdit(index, row) {
                    //console.log(index, row);
                },
                toggleSelection(rows) {
                    if (rows) {
                    rows.forEach(row => {
                        this.$refs.multipleTable.toggleRowSelection(row);
                    });
                    } else {
                    this.$refs.multipleTable.clearSelection();
                    }
                },
                handleSelectionChange(val) {
                    this.multipleSelection = val;
                },
                queryCourseList(){

                },
                queryDropCourseList(){

                },
                showCourseDetail(id){

                },
                // 考试方式
                getJW_DM_KSFS_Name(id){
                    for (var ksfs of this.JW_DM_KSFS){
                        if (ksfs.CODEVALUE == id){
                            return ksfs.CODENAME;
                        }
                    }
                    return '未知';
                },
                // getKclbName(id){
                //     for (var kclb of this.kclbArr){
                //         if (kclb.kclbm == id){
                //             return kclb.kclb;
                //         }
                //     }
                //     return '未知';
                // },
                doPrint() { 
                    var userAgent = navigator.userAgent.toLowerCase(); //取得浏览器的userAgent字符串
                    if (userAgent.indexOf("trident") > -1) {
                        this.notify("请使用google或者360浏览器打印");
                        return false;
                    } else if (userAgent.indexOf('msie') > -1) {
                        var onlyChoseAlert = simpleAlert({
                            "content" : "请使用Google或者360浏览器打印",
                            "buttons" : {
                                "确定" : function() {
                                    onlyChoseAlert.close();
                                }
                            }
                        });
                        alert("请使用google或者360浏览器打印");
                        return false;
                    } else {//其它浏览器使用lodop
                        var oldstr = document.body.innerHTML;
                        var headstr = "<html><head><title></title></head><body>";
                        var footstr = "</body></html>";
                        //执行隐藏打印区域不需要打印的内容
                        // document.getElementById("otherpho").style.display="none";
                        var printData = document.getElementById("scheduleTable").innerHTML; //获得 div 里的所有 html 数据
                        var wind = window.open("", "newwin","toolbar=no,scrollbars=yes,menubar=no");
                        wind.document.body.innerHTML = headstr + printData + footstr;
                        //页面打印缩放比例设置
                        wind.document.body.style.zoom=0.76;
                        wind.print();
                        //打印结束后，放开隐藏内容
                        // document.getElementById("otherpho").style.display="block";
                        wind.close();
                        window.document.body.innerHTML = oldstr;
                    }
                }
            }
        })
    }
</script>